struct Gyro <: AbstractDevice end

type(::Type{Gyro}) = :gyro

accelerations(dev::Device{Gyro}) = values(dev)

function Base.values(dev::Device{Gyro})
    v = Vector{Cdouble}(undef, 3)
    ret = @ccall lib.wb_gyro_get_values(dev.tag::Ptr{WbDeviceTag})::Ptr{Cdouble}
    unsafe_copyto!(pointer(v), ret, 3)
    v
end